home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Modem / SCR info / scr-express-modem-bd.txt < prev    next >
Text File  |  1994-07-05  |  4KB  |  214 lines

  1. ! "Express Modem AppleTalk Remote Access Script - 12/10/92 - V1.0"
  2. ! Modified by Bill Dickson for InterSLIP dialup, 09/26/93
  3. !      o Allow activation of compression and error correction
  4. !      o Decrease @LABEL18 delay before exit to facilitate gateway login script
  5. !
  6. @ORIGINATE
  7. @ANSWER
  8. !
  9. @LABEL 1
  10. !
  11. ! first recall the factory configuration
  12. !
  13. matchclr
  14. settries 0
  15. matchstr 1 3 "OK\13\10"
  16. @LABEL 2
  17. write "AT&F\13"
  18. matchread 30
  19. inctries
  20. iftries 2 59
  21. jump 2
  22. !
  23. ! Next, Set up the configuration: Echo off
  24. !
  25. @LABEL 3
  26. matchstr 1 4 "OK\13\10"
  27. write "ATE0\13"
  28. matchread 30
  29. jump 59
  30. !
  31. ! If speaker on flag is true, jump to label 8.  Else turn off the speaker
  32. !
  33. @LABEL 4
  34. @LABEL 5
  35. matchclr
  36. ifstr 2 8 "1"
  37. matchstr 1 8 "OK\13\10"
  38. write "ATM0\13"
  39. matchread 30
  40. jump 59
  41. !
  42. ! The modem is ready.  So enable answering, or originate a call
  43. !
  44. @LABEL 8
  45. ifANSWER 30
  46. note "Dialing ^1" 3
  47. write "ATS0=0DT^1\13"
  48. !
  49. @LABEL 9
  50. matchstr 1 11 "CONNECT 1200\13\10"
  51. matchstr 2 12 "CONNECT 2400\13\10"
  52. matchstr 3 13 "CONNECT 4800\13\10"
  53. matchstr 4 14 "CONNECT 7200\13\10"
  54. matchstr 5 15 "CONNECT 9600\13\10"
  55. matchstr 6 16 "CONNECT 12000\13\10"
  56. matchstr 7 17 "CONNECT 14400\13\10"
  57. matchstr 8 50 "NO CARRIER\13\10"
  58. matchstr 9 50 "ERROR\13\10"
  59. matchstr 10 52 "NO DIALTONE\13\10"
  60. matchstr 11 51 "MODEM IN USE\13\10"
  61. matchstr 12 53 "BUSY\13\10"
  62. matchstr 13 54 "NO ANSWER\13\10"
  63. matchread 700
  64. jump 59
  65. !
  66. @LABEL 11
  67. note "Communicating at 1200 bps." 2
  68. CommunicatingAt 1200
  69. jump 18
  70. !
  71. @LABEL 12
  72. note "Communicating at 2400 bps." 2
  73. CommunicatingAt 2400
  74. jump 18
  75. !
  76. @LABEL 13
  77. note "Communicating at 4800 bps." 2
  78. CommunicatingAt 4800
  79. jump 18
  80. !
  81. @LABEL 14
  82. note "Communicating at 7200 bps." 2
  83. CommunicatingAt 7200
  84. jump 18
  85. !
  86. @LABEL 15
  87. note "Communicating at 9600 bps." 2
  88. CommunicatingAt 9600
  89. jump 18
  90. !
  91. @LABEL 16
  92. note "Communicating at 12.0 kbps." 2
  93. CommunicatingAt 12000
  94. jump 18
  95. !
  96. @LABEL 17
  97. note "Communicating at 14.4 kbps." 2
  98. CommunicatingAt 14400
  99. !
  100. @LABEL 18
  101. ifANSWER 19
  102. !
  103. ! ADAM:  This is the culprit -- was pause 30, changed to pause 10
  104. !
  105. pause 10
  106. !
  107. exit 0
  108. @LABEL 19
  109. userhook 1
  110. exit 0
  111. !
  112. ! @ANSWER
  113. ! Set up the modem to answer
  114. @LABEL 30
  115. write "ATS0=1\13"
  116. matchstr 1 31 "OK\13\10"
  117. matchread 30
  118. jump 59
  119. !
  120. @LABEL 31
  121. matchstr 1  32 "RING\13\10"
  122. matchstr 2  11 "CONNECT 1200\13\10"
  123. matchstr 3  12 "CONNECT 2400\13\10"
  124. matchstr 4  13 "CONNECT 4800\13\10"
  125. matchstr 5  14 "CONNECT 7200\13\10"
  126. matchstr 6  15 "CONNECT 9600\13\10"
  127. matchstr 7  16 "CONNECT 12000\13\10"
  128. matchstr 8  17 "CONNECT 14400\13\10"
  129. matchstr 9  50 "NO CARRIER\13\10"
  130. matchstr 10 50 "ERROR\13\10"
  131. matchstr 11 51 "MODEM IN USE\13\10"
  132. matchstr 12 52 "NO DIALTONE\13\10"
  133. matchstr 13 53 "BUSY\13\10"
  134. matchstr 14 54 "NO ANSWER\13\10"
  135. matchread 700
  136. jump 31
  137. !
  138. @LABEL 32
  139. note "Answering phone
  140. jump 31
  141. !
  142. ! 50: error messages
  143. !
  144. @LABEL 50
  145. exit -6021
  146. !
  147. @LABEL 51
  148. note "The Express Modem is currently in use by another application
  149. exit -6020
  150. !
  151. @LABEL 52
  152. exit -6020
  153. !
  154. @LABEL 53
  155. exit -6022
  156. !
  157. @LABEL 54
  158. exit -6023
  159. !
  160. @LABEL 59
  161. exit -6019
  162. !
  163. ! Hang up the modem
  164. !
  165. @HANGUP
  166. @LABEL 60
  167. settries 0
  168. @LABEL 61
  169. write "ATH0\13"
  170. matchclr
  171. matchstr 1 64 "OK\13\10"
  172. matchstr 2 63 "NO CARRIER\13\10"
  173. matchstr 3 64 "ERROR\13\10"
  174. matchread 15
  175. inctries
  176. iftries 3 64
  177. ! no response, try escape sequence
  178. write "+++"
  179. matchclr
  180. matchstr 1 62 "OK\13\10"
  181. matchread 18
  182. !
  183. ! No response from modem
  184. !
  185. jump 61
  186. !
  187. @LABEL 62
  188. matchclr
  189. matchstr 1 64 "OK\13\10"
  190. matchstr 2 63 "NO CARRIER\13\10"
  191. write "ATH0\13"
  192. matchread 50
  193. jump 61
  194. !
  195. @LABEL 63
  196. pause 45
  197. flush
  198. !
  199. ! Recall the factory settings
  200. !
  201. @LABEL 64
  202. matchclr
  203. matchstr 1 65 "OK\13\10"
  204. write "AT&F\13"
  205. matchread 30
  206. !
  207. @LABEL 65
  208. matchstr 1 66 "OK\13\10"
  209. write "ATS0=0\13"
  210. matchread 30
  211. !
  212. @LABEL 66
  213. exit 0
  214.